package com.netease.pris.activity;

import android.widget.Button;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.Toast;
import com.netease.pris.activity.a.ad;
import com.netease.pris.activity.view.c;
import com.netease.pris.atom.aa;
import com.netease.pris.atom.o;
import com.netease.pris.atom.r;
import com.netease.pris.atom.u;
import com.netease.pris.b;
import com.netease.pris.protocol.d;
import java.util.HashMap;
import java.util.LinkedList;

class ce extends b
{
  ce(MallListActivity paramMallListActivity)
  {
  }

  public void a()
  {
    this.a.e();
  }

  public void b(int paramInt1, int paramInt2, String paramString, boolean paramBoolean)
  {
    try
    {
      if (MallListActivity.f(this.a).containsKey(new Integer(paramInt1)))
      {
        MallListActivity.f(this.a).remove(new Integer(paramInt1));
        MallListActivity.a(this.a, false);
        this.a.e();
        dc.a(this.a.d, paramInt2);
      }
      return;
    }
    catch (NullPointerException localNullPointerException)
    {
      while (true)
        localNullPointerException.printStackTrace();
    }
    finally
    {
    }
    throw localObject;
  }

  public void b(int paramInt, d paramd)
  {
    if (paramd == null)
      if (MallListActivity.f(this.a).containsKey(new Integer(paramInt)))
        MallListActivity.f(this.a).remove(new Integer(paramInt));
    while (true)
    {
      return;
      if (paramd.j.size() > 0)
      {
        if (MallListActivity.f(this.a).containsKey(new Integer(paramInt)))
        {
          MallListActivity.f(this.a).remove(new Integer(paramInt));
          Toast.makeText(this.a.d, 2131361911, 0).show();
        }
        c localc1 = new c();
        localc1.a = ((o)paramd.j.getFirst()).a();
        Button localButton = (Button)MallListActivity.l(this.a).findViewWithTag(localc1);
        if (localButton != null)
        {
          localButton.setText(2131361909);
          localButton.setCompoundDrawablesWithIntrinsicBounds(2130837547, 0, 0, 0);
          localc1.b = ((c)localButton.getTag()).b;
        }
        c localc2 = new c();
        localc1.a += "mark";
        ImageView localImageView = (ImageView)MallListActivity.l(this.a).findViewWithTag(localc2);
        if (localImageView != null)
          localImageView.setVisibility(8);
        if (((localButton == null) && (localImageView == null)) || (MallListActivity.e(this.a) == null))
          continue;
        MallListActivity.n(this.a).a(aa.b, localc1.a);
        if (MallListActivity.n(this.a).f(localc1.b) == null)
          continue;
        MallListActivity.n(this.a).f(localc1.b).a(aa.b);
        continue;
      }
      if ((paramd.i.size() <= 0) || (!MallListActivity.f(this.a).containsKey(new Integer(paramInt))))
        continue;
      MallListActivity.f(this.a).remove(new Integer(paramInt));
      Toast.makeText(this.a.d, ((r)paramd.i.getFirst()).e(), 0).show();
    }
  }

  public void b(int paramInt, d paramd, boolean paramBoolean)
  {
    try
    {
      if (MallListActivity.l(this.a) != null)
      {
        MallListActivity.l(this.a).removeFooterView(MallListActivity.m(this.a));
        MallListActivity.a(this.a, paramInt, paramd);
      }
    }
    catch (NullPointerException localNullPointerException)
    {
      localNullPointerException.printStackTrace();
    }
    finally
    {
    }
  }

  public void d(int paramInt1, int paramInt2, String paramString)
  {
    if (MallListActivity.f(this.a).containsKey(new Integer(paramInt1)))
    {
      MallListActivity.f(this.a).remove(new Integer(paramInt1));
      dc.a(this.a.d, paramInt2);
    }
  }

  public void e(int paramInt1, int paramInt2, String paramString)
  {
    if (MallListActivity.f(this.a).containsKey(new Integer(paramInt1)))
    {
      MallListActivity.f(this.a).remove(new Integer(paramInt1));
      dc.a(this.a.d, paramInt2);
    }
  }

  public void f(int paramInt, d paramd)
  {
    if (paramd == null)
      if (MallListActivity.f(this.a).containsKey(new Integer(paramInt)))
        MallListActivity.f(this.a).remove(new Integer(paramInt));
    while (true)
    {
      return;
      if (paramd.h.size() > 0)
      {
        if (MallListActivity.f(this.a).containsKey(new Integer(paramInt)))
        {
          MallListActivity.f(this.a).remove(new Integer(paramInt));
          Toast.makeText(this.a.d, 2131361910, 0).show();
        }
        c localc1 = new c();
        localc1.a = ((u)paramd.h.getFirst()).V();
        Button localButton = (Button)MallListActivity.l(this.a).findViewWithTag(localc1);
        if (localButton != null)
        {
          localButton.setText(2131361879);
          localButton.setCompoundDrawablesWithIntrinsicBounds(2130837548, 0, 0, 0);
          localc1.b = ((c)localButton.getTag()).b;
        }
        c localc2 = new c();
        localc1.a += "mark";
        ImageView localImageView = (ImageView)MallListActivity.l(this.a).findViewWithTag(localc2);
        if (localImageView != null)
          localImageView.setVisibility(0);
        if (((localButton == null) && (localImageView == null)) || (MallListActivity.e(this.a) == null))
          continue;
        MallListActivity.n(this.a).a(aa.a, localc1.a);
        if (MallListActivity.n(this.a).f(localc1.b) == null)
          continue;
        MallListActivity.n(this.a).f(localc1.b).a(aa.a);
        continue;
      }
      if ((paramd.i.size() <= 0) || (!MallListActivity.f(this.a).containsKey(new Integer(paramInt))))
        continue;
      MallListActivity.f(this.a).remove(new Integer(paramInt));
      Toast.makeText(this.a.d, ((r)paramd.i.getFirst()).e(), 0).show();
    }
  }

  public void g(int paramInt1, int paramInt2, String paramString)
  {
    try
    {
      if (MallListActivity.f(this.a).containsKey(new Integer(paramInt1)))
      {
        MallListActivity.f(this.a).remove(new Integer(paramInt1));
        this.a.e();
        dc.a(this.a.d, paramInt2);
      }
      return;
    }
    catch (NullPointerException localNullPointerException)
    {
      while (true)
        localNullPointerException.printStackTrace();
    }
    finally
    {
    }
    throw localObject;
  }

  public void j(int paramInt, d paramd)
  {
    try
    {
      if (MallListActivity.f(this.a).containsKey(new Integer(paramInt)))
      {
        MallListActivity.f(this.a).remove(new Integer(paramInt));
        this.a.e();
        if ((paramd != null) && (paramd.h != null))
          MallListActivity.a(this.a, paramd);
      }
    }
    catch (NullPointerException localNullPointerException)
    {
      localNullPointerException.printStackTrace();
    }
    finally
    {
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.ce
 * JD-Core Version:    0.6.0
 */